//
//  MyPictureCollectionReusableView.m
//  myselfTest
//
//  Created by Lucifer on 15-5-21.
//  Copyright (c) 2015年 xuxzhou. All rights reserved.
//

#import "MyPictureCollectionReusableView.h"
#import "UIImageView+WebCache.h"

@implementation MyPictureCollectionReusableView
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.headImage = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth(self.frame), CGRectGetWidth(self.frame) * 0.5)];
        self.headImage.backgroundColor = [UIColor redColor];
    
        [self addSubview:_headImage];
    }
    return self;
}
-(void)setImageUrls:(NSArray *)imageUrls{
    _imageUrls=imageUrls;
    if (imageUrls.count!=0) {
         [_headImage sd_setImageWithURL:imageUrls[0] ];
    }
}
@end
